package com.dayaokeji.server_api.api;

import com.dayaokeji.server_api.ServerResponse;
import com.dayaokeji.server_api.domain.StatisticDetail;
import com.dayaokeji.server_api.domain.StatisticsBean;
import com.dayaokeji.server_api.domain.StatisticsDetailParams;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Gorden on 2018/3/23.
 */

public interface StatisticsApi {

    @GET("course/course/statistics/by/user")
    Call<ServerResponse<List<StatisticsBean>>> statistics(@Query("userId") String userId,@Query("termId") String termId,@Query("startTime") String startTime,@Query("endTime") String endTime);

    @POST("course/course/student/statistic/detail")
    Call<ServerResponse<List<StatisticDetail>>> statisticDetail(@Body StatisticsDetailParams statisticsDetailParams);

    @POST("course/course/student/statistic")
    Call<ServerResponse<List<StatisticsBean>>> studentStatistics(@Body Map<String,Object> params);
}
